package com.bhs.sansong.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bhs.sansong.R;
import com.bhs.sansong.bean.CloseAccountBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class SatisfyAdapter extends BaseQuickAdapter<CloseAccountBean, BaseViewHolder> {

    public SatisfyAdapter(@Nullable List<CloseAccountBean> data) {
        super(R.layout.item_close_account, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, CloseAccountBean item) {
        helper.setText(R.id.tv_name, item.getName());
        helper.setText(R.id.tv_status, item.getStatus());
        helper.setImageResource(R.id.iv_status,item.isAccomplish()?R.mipmap.ic_accomplish2:R.mipmap.ic_unfinished);
    }
}
